#ifndef WAYPOINT_H
#define WAYPOINT_H

#include <QtGui>

class Waypoint
{
private:
    QString text;
    qreal longitude;
    qreal latitude;
    QPoint drawPoint;

public:
    Waypoint(const QString &textInn = "", qreal lat = 0.0, qreal lng = 0.0){ text = textInn; latitude = lat; longitude = lng; }
    void setPosition(qreal lat, qreal lng, int zoom);

    void setText(const QString &textInn) { text = textInn; }
    QString getText() const { return text; }

    void setDrawPoint(const QPoint &point) { drawPoint = point; }
    QPoint getDrawPoint() const { return drawPoint; }

    qreal getLongitude() const { return longitude; }
    qreal getLatitude() const { return latitude; }

    void calcPos(qreal CenterLat, qreal centerLon, int zoom, int tdim, int screenH, int screenW);
};

#endif // WAYPOINT_H
